package com.ruoyi.wms.domain.bo.partolStore;

import com.ruoyi.wms.domain.entity.partolStore.MaintenanceRecords;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import com.ruoyi.common.mybatis.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import io.github.linpeilie.annotations.AutoMapper;

import java.util.Date;

/**
 * 保养记录业务对象 maintenance_records
 *
 * @author xhtr
 * @date 2024-12-04
 */

@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = MaintenanceRecords.class, reverseConvertGenerate = false)
public class MaintenanceRecordsBo extends BaseEntity {

    /**
     * 设备id
     */
    @NotNull(message = "设备id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long equipentId;

    /**
     * 保养时间
     */
    @NotNull(message = "保养时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date maintenanceTime;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String context;

    /**
     * 保养人
     */
    @NotBlank(message = "保养人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String maintainer;


}
